﻿using System;
using System.Collections.Generic;
using System.Runtime.Versioning;
using ProxyLib;

namespace QbotAGV
{
    [SupportedOSPlatform("windows")]
    [SupportedOSPlatform("linux")]
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello Qbot!");
            var ZAxis = new KincoAxis("COM2", 1);
            ZAxis.Begin();
            ZAxis.SetVeloctiy(0);
            while(true)
            {
                if(ZAxis.GetActualPos())
                {
                    var pos = ZAxis.ServoValue.ActualPos;
                    Console.WriteLine(pos);
                }
            }
            Console.ReadKey();
        }
    }
}
